package com.joint.base.service.impl;

import com.joint.base.dao.BaseEntityDao;
import com.joint.base.dao.ExportDao;
import com.joint.base.entity.Company;
import com.joint.base.parent.BaseEntity;
import com.joint.base.service.ExportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: xuzhou
 * Date: 2015/4/1
 * Time: 10:31
 */
@Service
public class ExportServiceImpl extends BaseEntityServiceImpl<BaseEntity, String> implements ExportService  {
    @Resource
    private ExportDao exportDao;

    @Override
    public BaseEntityDao<BaseEntity, String> getBaseEntityDao() {
        return exportDao;
    }

    @Override
    public List<BaseEntity> getAll(Company company, String entityName) {
        return exportDao.getAll(company, entityName);
    }
}
